import {
    DIC
} from '@/const/dic';
import {
    parseTime
} from '../formatter';

export const scalperTableOption = {
    border: true,
    index: true,
    selection: true,
    calcHeight: 430,
    searchResetBtn: false,
    columnBtn: false,
    height: "auto",
    menu: true,
    menuAlign: "center",
    searchClearable: false,
    selectClearBtn: false,
    clearable: false,
    tip: false,
    searchBtn: true,
    labelWidth: 120,
    refreshBtn: true,
    addBtn: false,
    dialogWidth: '800px',
    dialogHeight: 'auto',
    menuWidth: 260,
    editBtn: true,
    viewBtn: true,
    delBtn: false,
    column: [{
            "label": "会员号",
            "prop": "UserNo",
            "search": true,
            "type": "text",
            disabled: true,
            "fixed": true,
            "row": false,
            "width": "150",
            "readonly": true,
            clearable: false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入会员id",
                "trigger": "blur"
            }]
        },
        {
            "label": "淘宝会员号",
            "prop": "WangNo",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入淘宝会员号",
                "trigger": "blur"
            }]
        },
        {
            "label": "手机号",
            "prop": "Telephone",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入手机号",
                "trigger": "blur"
            }]
        },
        {
            "label": "所属团长",
            "prop": "CaptainName",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            disabled: true,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "rules": [{
                "required": true,
                "message": "请选择所属团长",
                "trigger": "blur"
            }]
        },
        {
            "label": "邀请码",
            "prop": "InviteCode",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false,
            "rules": [{
                "required": true,
                "message": "请输入邀请码",
                "trigger": "blur"
            }]
        },
        {
            "label": "状态",
            "prop": "Status",
            "search": true,
            "type": "select",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false,
            "rules": [{
                "required": true,
                "message": "请选择状态",
                "trigger": "blur"
            }],
            "placeholder": "请选择状态",
            "dicData": DIC["scalperStatus"]
        },
        {
            "label": "审核备注",
            width: 150,
            "prop": "Notes",
            type: 'textarea',
            display: false,
            "search": false,
        },
        {
            "label": "身份证号码",
            "prop": "IdentityNo",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false
        },
        {
            "label": "身份证正面",
            "prop": "IdentityFront",
            "search": false,
            "listType": "picture-img",
            "type": "upload",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "display": true,
            "span": 12
        },
        {
            "label": "身份证反面",
            "prop": "IdentityBack",
            "search": false,
            "listType": "picture-img",
            "type": "upload",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true
        },
        {
            "label": "微信号",
            "prop": "WxNo",
            "search": false,
            "fixed": false,
            "type": "text",
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true
        },
        {
            "label": "微信收款码",
            "prop": "WxReceiptCode",
            "search": false,
            "fixed": false,
            "listType": "picture-img",
            "type": "upload",
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true
        },
        {
            "label": "提现银行卡号",
            "prop": "BankAccount",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "180",
            "row": false,
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入提现银行卡号",
                "trigger": "blur"
            }]
        },
        {
            "label": "开户行",
            "prop": "BankName",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入开户行",
                "trigger": "blur"
            }]
        },
        {
            "label": "开户支行",
            "prop": "BankBranch",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "140",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入开户支行",
                "trigger": "blur"
            }]
        },
        // {
        //     "label": "淘宝口令",
        //     "prop": "TaobaoToken",
        //     "search": false,
        //     "type": "text",
        //     "fixed": false,
        //     "width": "auto",
        //     "row": false,
        //     "minWidth": "120",
        //     "readonly": false,
        //     "span": 12,
        //     "display": true,
        //     "rules": [{
        //         "required": true,
        //         "message": "请输入淘宝口令",
        //         "trigger": "blur"
        //     }]
        // },
        {
            "label": "淘宝订单号",
            "prop": "TaobaoOrderNo",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "140",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入淘宝订单号",
                "trigger": "blur"
            }]
        },
        {
            "label": "创建时间",
            "prop": "CreateTime",
            "search": false,
            formatter: parseTime,
            "type": "datetime",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false
        },
        {
            "label": "最小接单金额",
            "prop": "MinAward",
            "search": false,
            "type": "number",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            disabled: true,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入最小接单金额(分)",
                "trigger": "blur"
            }]
        },
        {
            "label": "最大接单金额",
            "prop": "MaxAward",
            "search": false,
            "type": "number",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            disabled: true,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入最大接单金额(分)",
                "trigger": "blur"
            }]
        },
        {
            "label": "修改时间",
            "prop": "ModifyTime",
            formatter: parseTime,
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false
        },
        {
            "label": "地区",
            "prop": "Area",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            disabled: true,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入地区",
                "trigger": "blur"
            }]
        },
        {
            "label": "性别",
            "prop": "Sex",
            "search": false,
            "type": "select",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请选择性别",
                "trigger": "blur"
            }],
            "placeholder": "请选择性别",
            "dicData": DIC["sex2"]
        }
    ]
};
